# encoding: UTF-8
"""
条件模板
"""
class CondictionTemplate(object):
    """基础条件模板"""
    def __init__(self):
        """初始化"""
        #self.strategy = strategy
        self.param = {}
    def setParam(self, param):
        """设置参数"""
        self.param = param
    def setStrategy(self, strategy):
        self.strategy = strategy

    def caculate(self):
        """计算指标"""
        pass
    def buy(self):
        """买入条件"""
        pass
    def sell(self):
        """卖出平仓条件"""
        pass
    def short(self):
        """卖出开仓条件"""
        pass
    def cover(self):
        """买入平仓条件"""
        pass

